package com.ruoyi.mall.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 商品属性对象 mall_property
 * 
 * @author ruoyi
 * @date 2020-05-20
 */
public class MallProperty extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 属性id */
    private Long propertyId;



    /** 属性名称 */
    @Excel(name = "属性名称")
    private String propertyName;



    /** 排序 */
    @Excel(name = "排序")
    private Long sort;
    private List<MallValue> values;

    public List<MallValue> getValues() {
        return values;
    }

    public void setValues(List<MallValue> values) {
        this.values = values;
    }

    private List<MallCategory> categories;
    public List<MallCategory> getCategories() {
        return categories;
    }

    public void setCategories(List<MallCategory> categories) {
        this.categories = categories;
    }
    public void setPropertyId(Long propertyId)
    {
        this.propertyId = propertyId;
    }

    public Long getPropertyId() 
    {
        return propertyId;
    }
    public void setPropertyName(String propertyName) 
    {
        this.propertyName = propertyName;
    }

    public String getPropertyName() 
    {
        return propertyName;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("propertyId", getPropertyId())
            .append("propertyName", getPropertyName())
            .append("sort", getSort())
            .toString();
    }
}
